package com.mes.cloud.constant;

/**
 * 常量类
 *
 * @author xy
 * @version 2019-07-30 09:35:59
 * @email yuan.xue3@pactera.com
 */
public class Constants {

    /*
     *状态(0：禁用)
     */
    public static final String ENABLE_FLAG_NO = "0";

    /*
     *状态(1：启用)
     */
    public static final String ENABLE_FLAG_YES = "1";

    /*
     *删除标记(0：未删除)
     */
    public static final String DEL_FLAG_NO = "0";

    /*
     *删除标记(1：删除)
     */
    public static final String DEL_FLAG_YES = "1";

    /*
     *登录权限(0：无)
     */
    public static final String ALLOW_LOGIN_NO = "0";

    /*
     *登录权限(1：有)
     */
    public static final String ALLOW_LOGIN_YES = "1";

    /*
     *菜单类型菜单
     */
    public static final int MENU_TYPE_MENU = 1;

    /*
     *菜单类型按钮
     */
    public static final int MENU_TYPE_BUTTON = 2;

    /*
     *菜单类型tab
     */
    public static final int MENU_TYPE_TAB = 3;

    /*
     *区划类型-国家
     */
    public static final int AREA_TYPE_COUNTRY = 0;

    /*
     *区划类型-省
     */
    public static final int AREA_TYPE_PROVINCE = 1;

    /*
     *区划类型-城市
     */
    public static final int AREA_TYPE_CITY = 2;

    /*
     *区划类型-区县
     */
    public static final int AREA_TYPE_DISTRICT = 3;

    /*
     *区划类型-乡镇
     */
    public static final int AREA_TYPE_TOWN = 4;

    /*
     *区划类型-村
     */
    public static final int AREA_TYPE_VILLAGE = 5;

    /*
     *是
     */
    public static final String YES = "1";

    /*
     *否
     */
    public static final String NO = "0";

    /**
     * 是否主要（0-否，1-是）
     */
    public static final String ROLE_MAINFLAG = "1";

    /**
     * 行政区划日志信息
     **/
    public static final String ADD_AREA = "添加该行政区划";
    public static final String ENABLE_AREA = "启用该行政区划";
    public static final String DISABLE_AREA = "停用该行政区划";
    public static final String UPDATE_AREA = "编辑该行政区划";
    public static final String AREA_MENU_CODE = "01234567";
    public static final String ADD_LINK_TO_SALE_STRATEGY = "增加产品分销策略的关联";
    public static final String REMOVE_LINK_TO_SALE_STRATEGY = "移除产品分销策略的关联";
    public static final String ADD_MARKET_DEVELOPMENT = "增加市场发展阶段";
    public static final String UPDATE_MARKET_DEVELOPMENT = "更新市场发展阶段";

    /**
     * 组织日志信息
     **/
    public static final String ADD_ORGANIZATION = "添加该组织";
    public static final String ENABLE_ORGANIZATION = "启用该组织";
    public static final String DISABLE_ORGANIZATION = "停用该组织";
    public static final String UPDATE_ORGANIZATION = "编辑该组织";
    public static final String DELETE_ORGANIZATION = "删除该组织";
    public static final String ORGANIZATION_MENU_CODE = "01234567";


    /**
     * 员工日志信息
     **/
    public static final String ADD_EMPLOYEE = "添加该员工";
    public static final String UPDATE_EMPLOYEE = "编辑该员工";
    public static final String DELETE_EMPLOYEE = "删除该员工";
    public static final String ADD_LINK_TO_POSITION = "增加关联岗位";
    public static final String REMOVE_LINK_TO_POSITION = "移除关联岗位";
    public static final String SET_MAIN_POSITION = "设置主岗位";
    public static final String ADD_LINK_TO_ROLE = "增加关联角色";
    public static final String REMOVE_LINK_TO_ROLE = "移除关联角色";
    public static final String SET_MAIN_ROLE = "设置主角色";
    public static final String BATCH_STATUS = "员工离职";
    public static final String EMPLOYEE_MENU_CODE = "01234567";

    /**
     * 岗位日志信息
     **/
    public static final String ADD_POSITION = "添加该岗位";
    public static final String ENABLE_POSITION = "启用该岗位";
    public static final String DISABLE_POSITION = "停用该岗位";
    public static final String UPDATE_POSITION = "编辑该岗位";
    public static final String DELETE_POSITION = "删除该岗位";
    public static final String ADD_LINK_TO_EMPLOYEE = "增加关联员工";
    public static final String REMOVE_LINK_TO_EMPLOYEE = "移除关联员工";
    public static final String SET_POSITION_TYPE = "设置授权方式";
    public static final String UPDATE_AUTH_ORGANIZATION = "修改授权组织";
    public static final String ADD_SUPERIOR_POSITION = "增加关联上级岗位";
    public static final String REMOVE_SUPERIOR_POSITION = "移除关联上级岗位";
    public static final String POSITION_MENU_CODE = "01234567";

    /**
     * 产品日志信息
     */
    public static final String ADD_PRODUCT = "添加该产品";
    public static final String ENABLE_PRODUCT = "启用该产品";
    public static final String DISABLE_PRODUCT = "停用该产品";
    public static final String UPDATE_PRODUCT = "编辑该产品";
    public static final String DELETE_PRODUCT = "删除该产品";
    public static final String REMOVE_LINK_TO_COMPETITIVE_BRAND = "移除关联对标竞品";
    public static final String ADD_LINK_TO_COMPETITIVE_BRAND = "新增关联对标竞品";
    public static final String ADD_LINK_TO_PRODUCT_COMBINE = "新增关联产品组合";
    public static final String REMOVE_LINK_TO_PRODUCT_COMBINE = "移除关联产品组合";
    public static final String ADD_LINK_TO_PRODUCT_IDENTIFY = "新增关联标识产品";
    public static final String REMOVE_LINK_TO_PRODUCT_IDENTIFY = "移除关联标识产品";
    public static final String ADD_TO_PRODUCT_UNIT = "新增产品单位";
    public static final String UPDATE_TO_PRODUCT_UNIT = "修改产品单位";

    public static final String PRODUCT_MENU_CODE = "01234567";

    /**
     * 菜单code生成
     */
    public static final String CODE_GENERATOR_MENU = "menu";

    /**
     * 产品价格组code生成
     */
    public static final String CODE_GENERATOR_PRODUCT_PRICE_GROUP = "product_price_group";

    /**
     * 产品客户组code生成
     */
    public static final String CODE_GENERATOR_PRODUCT_CUSTOMER_GROUP = "product_customer_group";

    /**
     * code生成
     */
    public static final String CODE_GENERATOR_ROLE = "role";
    public static final String CODE_GENERATOR_AREA = "area";
    /**
     * code生成
     */
    public static final String CODE_GENERATOR_POSITION = "position";

    /**
     * code生成
     */
    public static final String CODE_GENERATOR_ORGANIZATION = "organization";

    /**
     * 品牌
     */
    public static final String PRODUCT_BRAND_PREFIX = "brand";
    public static final String PRODUCT_BRAND_TYPE = "2";
    public static final String CHANNEL_DIRECTORY_PARENTID = "0";
    /**
     * 渠道定义
     */
    public static final String BASE_CHANNEL_HEAD_id = "0";
    public static final String BASE_CHANNEL_PREFIX = "channel";
    public static final Integer BASE_CHANNEL_MODULELEVEL_MAX = 10;
    public static final Integer BASE_CHANNEL_MODULELEVEL_1 = 1;
    public static final String ADD_LINK_TO_ORGANIZATION = "组织增加所属渠道";
    /**
     * 产品目录
     */
    public static final String PRODUCT_DIRECTORY_PREFIX = "directory";
    public static final Integer PRODUCT_DIRECTORY_MODULELEVEL_MAX = 7;
    public static final String PRODUCT_DIRECTORY_TYPE = "2";
    public static final String PRODUCT_DIRECTORY_TYPE_1 = "1";
    public static final Integer PRODUCT_DIRECTORY_NAME_COUNT = 1;

    /**
     * 产品code生成
     */
    public static final String CODE_GENERATOR_PRODUCT = "product";

    /**
     * 员工工号生成
     */
    public static final String CODE_GENERATOR_EMPLOYEE = "employee";


    /**
     * 组织编码前缀
     */
    public static final String CODE_ORGANIZATION_PREFIX = "SH";

    /**
     * 产品价格组编码前缀
     */
    public static final String PRODUCT_PRICE_GROUP_PREFIX = "GW";

    /**
     * 产品客户组编码前缀
     */
    public static final String PRODUCT_CUSTOMER_GROUP_PREFIX = "GW";

    /**
     * 产品数据来源 1.SAP 2.FSFA 3.CRM
     */
    public static final String SOURCE_SAP = "SAP";
    public static final String SOURCE_FSFA = "FSFA";
    public static final String SOURCE_CRM = "CRM";
    public static final String SOURCE_SF = "SF";

    /**
     * 产品类型 1.竞品
     */
    public static final String PRODUCT_TYPE_COMPETE = "1";

    /**
     * 产品目录类型 （1：欣和品牌，2：竞品品牌）
     */
    public static final Integer DIRECTORY_TYPE_COMPETE = 2;

    /**
     * 状态
     */
    public static final String STATUS_EFFECTIVE = "有效";
    public static final String STATUS_UNEFFECTIVE = "失效";

    /*
     *产品单位 1.基本单位 2.辅助单位
     */
    public static final String BASIC_UNIT = "1";
    public static final String AUXILIARY_UNIT = "2";

    /**
     * 产品单位换算比 1位基本单位 大于1辅助单位
     */
    public static final String CONVERSION_RATIO = "1";

    /**
     * 员工数据来源
     */
    public static final String EMPLOYEE_SOURCE_SF = "1";

    /**
     * 是否主要（0-否，1-是）
     */
    public static final String POSITION_MAIN_FLAG_YES = "1";

    /**
     * 是否主要（0-否，1-是）
     */
    public static final String POSITION_MAIN_FLAG_NO = "0";

    /**
     * 岗位数据来源
     */
    public static final String POSITION_TYPE_SOURCE_SF = "1";

    /**
     * 正式员工
     */
    public static final String EMPLOYEE_TYPE_STANDARD = "Employee";

    //菜单类型1:菜单、2:按钮、3:子页、4:客户类型、5:客户tab
    public static final String MENU_TYPE_CUSTOMER_TYPE = "4";

    public static final String MENU_TYPE_CUSTOMER_TAB = "5";


    //对方员工
    public static final String EMPLOYEE_TYPE_OTHER = "Other employee";
    //正式员工
    public static final String EMPLOYEE_TYPE_EMPLOYEE = "Employee";
    //非正式员工
    public static final String EMPLOYEE_TYPE_SHOPPING_GUIDE = "Shopping Guide";

    /**
     *  非正式员工前缀
     */
    public static final String EMPLOYEE_MS = "MS";

    /*
 *是
 */
    public static final int YES_INTEGER = 1;

    /*
     *否
     */
    public static final int NO_INTEGER = 0;


    //数据同步查询页码
    public static final String SYNCHRO_CTREAT = "admin";
    public static final String SYNCHRO_TYPE = "0";

    public static final String SYNCHRO_TYPE_A32 = "A32";
    public static final String SYNCHRO_TYPE_A32_VAL = "390871634097135616";

    public static final String SYNCHRO_TYPE_A304 = "A304";
    public static final String SYNCHRO_TYPE_A304_VAL= "394161333402263552";

    public static final String SYNCHRO_TYPE_A305 = "A305";
    public static final String SYNCHRO_TYPE_A305_VAL = "394160657192378368";

    public static final String SYNCHRO_TYPE_SAP = "SAP";
    public static final String SYNCHRO_DEL_FLAG = "X";
    public static final String SYNCHRO_PRODUCT_TYPE_2 = "ZFER";
    public static final String SYNCHRO_PRODUCT_TYPE_3 = "ZHAW";
    public static final String SYNCHRO_PRODUCT_TYPE_4 = "ZERS";
    public static final String SYNCHRO_MSTAV_FLAG = "在售";
    public static final String SYNCHRO_PRODUCT_DIRECTORY = "全部 / 欣和集团 / ";

    public static final String CULLING_ROLE_CODE="10000002";

    public static final String ALL_AREA_ORG = "ALL_AREA_ORG";
    public static final String ALL_CUSTOMER_ORG = "ALL_CUSTOMER_ORG";

    /**************************** redis 缓存字符串 *************************/
    public static final String REDIS_GLOBAL_LOG_MANAGEMENT = "global_log";

    //es globalLogManagement index
    /**************************** es 缓存字符串 *************************/
    public static final String ES_GLOBAL_LOG_MANAGEMENT = "global_log";

    /*
     * 模板树类 1-字典
     */
    public static final int MODULE_TREE_TEPE = 1;

    /*
     * 模板树类 字典是否默认
     */
    public static final int DEFAULT_FLAG = 1;

    /*
     *  tree 根节点
     */
    public static final String PAREN_TTREE = "0";

    /**
     * 用户信息缓存后缀
     */
    public static final String USER_REDIS_SUFFIX = "info";

    /**
     * 用户岗位缓存后缀
     */
    public static final String POSITION_REDIS_SUFFIX = "position";

    /**
     * 用户权限缓存后缀
     */
    public static final String AUTH_REDIS_SUFFIX = "auth";

    /**************************** redis 缓存字符串 *************************/
    public static final String MY_MENU_LIST = "my_menu_list";


    /**
     * 登录 多久不操作退出
     */
    public static final Long LOGIN_INFO_EXPIRE = 1 * 60 * 60L;

    public static final String LOGIN_KEY_PAIR = "login_key_pair";

    //密码加密key
    public static final String PWD_KEY = "0000GENGENSERVER";

    //默认密码
    public static final String PWD_DEFAULT = "l96YMtkjCai5lzezU/8ZBQ==";

}